#ifndef LIBTORRENT_BITFIELD_COUNTER_H
#define LIBTORRENT_BITFIELD_COUNTER_H

#include <vector>

namespace torrent {

class BitFieldCounter {
public:
	// Use short since we're never going to get more than 2^16 peers connected
	// at once.
	typedef std::vector<unsigned short> Field;

	BitFieldCounter() : m_field(0) {}
	BitFieldCounter(int size) : m_field(size, 0) {}

	const Field& field() const { return m_field; }

private:
	Field m_field;
};
}



#endif // LIBTORRENT_BITFIELD_COUNTER_H
